import request from '../../../src/utils/request.js'

export function listDrawPolygon() {
    return request({
        url: '/api/drawpolygon/list',
        method: 'get'
    })
}
export function addDrawPolygon(data) {
    return request({
        url: 'api/drawpolygon',
        method: 'post',
        data: data,
    })
}

export function updateDrawPolygon(data) {
    return request({
        url: '/api/drawpolygon',
        method: 'PUT',
        data: data,
    })
}

export function getDrawPolygon(id) {
    return request({
        url: '/api/drawpolygon/' + id,
        method: 'get'
    })
}
  
export function delDrawPolygon(pid) {
    return request({
      url: '/api/drawpolygon/delete/' + pid,
      method: 'delete'
    })
}
  